package com.geek.zookeeper.curator.entity;

import com.geek.entity.IdEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 订单表
 */
@Data
@Entity(name = "zoo_order")
public class ZooOrder extends IdEntity {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="product_id")
	private ZooProduct product;

}
